package com.afb

class Job {

    static hasMany = [ process : Process ]
    static mappedBy = [process:"job"]

    User user
    
    String name

    String description

    String status

    long submissionDate
    long endProcessingDate

    static constraints = {
        name(blank:false, maxSize:200)
        description(blank:false, maxSize:500)
        status(inList:["queued","processing","finished","error"])

    }

}
